/*
 * @Author: codeD
 * @Date: 2022-03-01 17:35:33
 * @LastEditors: codeD
 * @LastEditTime: 2022-03-01 21:50:22
 * @Description: file content
 * @FilePath: \dumi\myapp\src\Button\index.tsx
 */
import React,{useState} from 'react';
import  type { Buttons} from './type'
import  './index.less'
const Button =(props:Buttons)=>{
  
    const {children,type,onClick}=props
    
    return (
        <div>
            <div >
              <button className='button-click' style={{background:type}} onClick={onClick}>{children}</button>  
            </div>
        </div>
    )
}

export default Button;
